<div id="menu">
    <ul class="nav">
        <li class="nav-title">
        </li>
        <li class="nav-item">
            <a class="nav-link" href="index.html"><i class="icon-speedometer"></i> 我的应用 </a>
        </li>
        <li class="nav-item nav-dropdown">
            <a class="nav-link nav-dropdown-toggle" href="#"><i class="icon-note"></i> 我的表单 </a>
            <ul class="nav-dropdown-items">
                <li class="nav-item">
                    <a class="nav-link" href="ingore.html"><i class="icon-energy"></i> 子页面 </a>
                </li>
            </ul>
        </li>
    </ul>
</div>

<script>
    window.parent.postMessage(JSON.stringify({type: "menu", data: document.getElementById("menu").innerHTML}), "*");
</script>